package com.zwps.biz.domain.converter;

import com.zwps.biz.api.model.dto.permission.page.AddPagePermissionDTO;
import com.zwps.biz.api.model.vo.permission.page.PagePermissionTreeVO;
import com.zwps.biz.dal.db.object.PagePermissionDO;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface PagePermissionConverter {

    PagePermissionConverter INSTANCE = Mappers.getMapper(PagePermissionConverter.class);

    PagePermissionDO toPagePermissionDO(AddPagePermissionDTO dto);
    
    PagePermissionTreeVO toPagePermissionTreeVO(PagePermissionDO d);

}
